Skip to content

chore(register): seven findings from /code-review max - #331

Merged
Polichinel merged 2 commits into
developmentfrom
chore/register-code-review-max-findings
Nov 12, 2026
Merged

Polichinel merged 2 commits into
developmentfrom
chore/register-code-review-max-findings

Conversation

@Polichinel

Copy link
Copy Markdown
Collaborator

What

Register intake for the findings /code-review max verified on docs/draws-docstring-stale-sample-width, minus the two that branch fixes. No code changes — this touches reports/technical_risk_register.md only.

ID Tier Finding
C-113 2 coverage.py:62,99 collapse "no region declared" into the same return as "a named region that is not pinned" — the second is documented and supported, the first silently no-ops both coverage gates
C-114 3 The S7 falsification stub reports XFAIL for exceptions raised by its own probe, and a behaviour-preserving rename XPASSes it into a hard red on a required check
C-115 3 The credential warning names the key both deliveries authenticate with from min() over timestamps the same file calls invented
C-116 2 ACKNOWLEDGED_UNTIL is bounded only by the expiry, so the 2027 key move widened the escape to swallow 29 of the 30 lead days
C-117 3 The seam drift detector projects 3 fields, so the pinned registry still declaring two retired keys dying 2026-11-17 is invisible
C-118 2 The views-frames <4.0.0 justification is unguarded prose, and the re-check recipe it points at is scoped to the one directory the MAJOR did not change
C-119 3 Resolving C-84/C-110 left C-86 and Cluster N asserting a red build that is green

Tiering

Tier 2 is reserved here for the three with a stated trigger and a consequence that reaches a delivery or the release path: C-113 (a partner delivery whose curation gate did nothing), C-116 (a seam-outage tripwire silenceable in one green line), C-118 (wire bytes, with a verification that returns empty for the wrong reason). The rest are Tier 3 — they misinform a human who is acting, which is real but recoverable.

Nothing was given Tier 1. None of these corrupts data with no error signal: C-113's count-gate logs a warning before it skips.

Deduplicated rather than appended

C-107 was widened, not duplicated. The two stale claims in delivery/draws.py share C-107's root — docstrings are outside the doc-accuracy corpus — but not its problem type: C-107 is about pointers to moved files, these were wrong about this package's own behaviour. They are recorded in C-107 as evidence that the unscanned corpus rots in two ways, and explicitly not as an open defect, since the sibling branch fixes them.

C-114 is new rather than merged into C-108. Same family, opposite failure direction: C-108's broken gates read false green from a FileNotFoundError; C-114 also reads false red from a rename. Cross-referenced both ways.

Not registered

Every finding scoped only to tests/test_falsify_coverage_region_is_declared.py — an untracked working-tree file in no commit. Registering defects in a file the repo does not contain would be tracking a risk that does not exist. Its root cause is registered instead, as C-113, where the measured mutations point: the stub's own prescription would have made africa_me_legacy unlaunchable.

Also skipped as below the register's signal threshold: a missing CHANGELOG entry, and README.md:64's two-majors-stale dependency table (a one-line docs fix, not a tracked risk).

Verification

  • pytest tests/test_register_integrity.py — 12 passed. It caught a missing --- fence on the first inserted entry; fixed and re-run.
  • Counts verified against the section bodies rather than the header: 37 open + 83 resolved = 120 total, matching the updated header.
  • Foreign IDs namespaced per the register's own convention (views-models ADR-021).

🤖 Generated with Claude Code

https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9

Polichinel and others added 2 commits November 12, 2026 03:06
…widened

Intake for the findings the max review verified and this branch does not fix.
Nothing here changes code.

New, tiered on evidence rather than on how alarming they read:

- C-113 (T2) `coverage.py:62,99` collapse "no region declared" into the same
  return as "a named region that is not pinned". The second is supported and
  documented (africa_me_legacy); the first is ADR-003 inference by omission and
  silently no-ops both coverage gates. One branch fixes all six call sites.
- C-114 (T3) the S7 stub reports XFAIL for a ValueError or FileNotFoundError
  raised by its own probe, and a rename of `resolve_latest` to the port's real
  method name XPASSes it into a hard red on a required check.
- C-115 (T3) the credential warning names the key both deliveries authenticate
  with from `min()` over timestamps the same file calls invented.
- C-116 (T2) `ACKNOWLEDGED_UNTIL` is bounded only by the expiry, so the 2027
  move widened the escape to swallow 29 of the 30 lead days.
- C-117 (T3) the seam drift detector projects three fields, so the pinned
  registry still declaring two retired keys dying 2026-11-17 is invisible.
- C-118 (T2) the views-frames `<4` justification is unguarded prose, and the
  re-check it points at is scoped to the one directory the MAJOR did not change.
- C-119 (T3) resolving C-84/C-110 left C-86 and Cluster N asserting a red build
  that is green.

Widened rather than duplicated: C-107 gains the two stale *claims* found in
`delivery/draws.py` as evidence that the unscanned corpus rots in two ways, not
one. They are fixed on docs/draws-docstring-stale-sample-width, so they are
recorded as evidence, not as an open defect.

Not registered: every finding scoped only to the untracked
tests/test_falsify_coverage_region_is_declared.py, which is in no commit. Its
root cause is C-113.

Counts 113 -> 120 total, 30 -> 37 open; verified 37 + 83 against the section
bodies, not the header. test_register_integrity.py 12 passed — it caught a
missing `---` fence on the first entry, which is what it is for.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
… fixed

The max review's Phase 3 sweep landed after its hand-back. Of its six findings,
three were fixed as code on docs/draws-docstring-stale-sample-width (the empty
payload misdiagnosis and the ragged-input Raises hole). These are the rest.

- C-120 (T3) ADR-013 is now the stale copy of §6. `:1126` carries an OPEN
  maintainer item — '§6 "region-pinned" production S_min: the term was never
  defined' — and the docstring quoted that undefined term as fact until 5d6262e
  deleted it. Deleting a term is not defining it, so the item stands. `:730`
  still scopes the gate to the FAO delivery and calls the sink leg unbuilt;
  `:1201` still says the four rules match draws.py exactly.
- C-121 (T3) test_an_acknowledgement_cannot_outlive_the_expiry returns early on
  ACKNOWLEDGED_UNTIL is None and has never run its assertion, while the register
  credits it among four companion tests "verified by mutation". Its sibling got
  a derived probe precisely so C-102 could not apply; this one did not.
- C-122 (T3) test_the_manager_asserts_both_axes reads unfao's manager by
  hardcoded path and never crafd's. Ninth in the #211 family, in a repo whose
  conftest declares PARTNER_PACKAGES to end exactly this.

Fixed rather than registered: pyproject's pytest comment read "the suite runs on
9.x today; 8.x still works". Measured — the lock pins 8.4.2, `poetry check
--lock` exits 0, the installed runtime is 8.4.2. 8.x is not the fallback, it is
the only resolution, so the comment was backwards about which pytest the green
suite was measured on. One line, below the register's signal threshold.

Counts 120 -> 123 total, 37 -> 40 open; verified 40 + 83 against the section
bodies. test_register_integrity caught an extra blank line after the fence, as
it did the missing fence last time. 45 passed across register, lock and
doc-accuracy guards.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ANY1CCy9Xo7zjMY4XJ69v9
@Polichinel

Copy link
Copy Markdown
Collaborator Author

Second batch, and one correction to this PR's scope

The max review's Phase 3 sweep landed after its hand-back with six more verified findings. Three became code on docs/draws-docstring-stale-sample-width (an empty payload reported as a collapse, and a ragged-input hole in the Raises contract — see #329). The other three are registered here, in 114c138:

ID Tier Finding
C-120 3 ADR-013 is now the stale copy of §6 — and :1126 carries an open maintainer item that a docstring deletion has effectively pre-answered
C-121 3 test_an_acknowledgement_cannot_outlive_the_expiry returns early on ACKNOWLEDGED_UNTIL is None and has never run its assertion, while the register credits it as mutation-verified
C-122 3 test_the_manager_asserts_both_axes reads unfao's manager by hardcoded path and never crafd's — ninth in the #211 family

Scope correction: this PR is no longer register-only. It now also fixes one line of pyproject.toml. The comment on the pytest constraint read "the suite runs on 9.x today; 8.x still works". Measured: the lock pins 8.4.2, poetry check --lock exits 0, and the installed runtime is 8.4.2. So 8.x is not the fallback — it is the only resolution, and the comment was backwards about which pytest the green suite was measured on. One line, and below the register's own signal-to-noise threshold for a tracked entry, so it is fixed rather than registered.

C-120 is the one that needs a human. docs/ADRs/013:1126 records an open maintainer item: "(2) §6 "region-pinned" production S_min: the term was never defined". Commit 5d6262e removed that exact phrase from delivery/draws.py because it was measurably false — nothing region-pins a sample width. But removing an undefined term is not the same as defining it. The ADR's item stands, and it should close on a maintainer's decision rather than on the absence of a docstring phrase. The entry says so rather than assuming the deletion settled it.

Counts 120 → 123 total, 37 → 40 open, verified against the section bodies. test_register_integrity caught an extra blank line after the entry fence — the second formatting error it has caught in this PR, which is the argument for it existing.

@Polichinel
Polichinel merged commit 210490a into development Nov 12, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant